package lec01.pm;

import java.util.Scanner;

public class IO3 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Scanner cin = new Scanner(System.in);
		int n = cin.nextInt();
		for (int i = 0; i < n; i++) {
			int a = cin.nextInt();
			int b = cin.nextInt();
			System.out.println(a + b);
		}

		cin.close();

	}

}
